package com.coolgor.axnut.dto.airuc;

import java.util.List;

import com.coolgor.axnut.entity.airuc.Headline;
import com.coolgor.axnut.enums.airuc.HeadlineStateEnum;

public class HeadlineExecution {
	// 结果状态
	private int state;

	// 状态标识
	private String stateInfo;

	// 执行结果的数量
	private int count;

	// 操作的对象(增删改的时候用到)
	private Headline headline;

	// 获取的结果列表(查询列表的时候使用)
	private List<Headline> headlineList;

	public HeadlineExecution() {	}

	// 操作失败的时候使用的构造器
	public HeadlineExecution(HeadlineStateEnum stateEnum) {
		this.state = stateEnum.getState();
		this.stateInfo = stateEnum.getStateInfo();
	}

	// 增删改 操作成功的时候使用的构造器
	public HeadlineExecution(HeadlineStateEnum stateEnum, Headline headline) {
		this.state = stateEnum.getState();
		this.stateInfo = stateEnum.getStateInfo();
		this.headline = headline;
	}

	// 查询 操作成功的时候使用的构造器
	public HeadlineExecution(HeadlineStateEnum stateEnum, List<Headline> headlineList) {
		this.state = stateEnum.getState();
		this.stateInfo = stateEnum.getStateInfo();
		this.headlineList = headlineList;
	}

	public int getState() {
		return state;
	}

	public void setState(int state) {
		this.state = state;
	}

	public String getStateInfo() {
		return stateInfo;
	}

	public void setStateInfo(String stateInfo) {
		this.stateInfo = stateInfo;
	}

	public int getCount() {
		return count;
	}

	public void setCount(int count) {
		this.count = count;
	}

	public Headline getHeadline() {
		return headline;
	}

	public void setHeadline(Headline headline) {
		this.headline = headline;
	}

	public List<Headline> getHeadlineList() {
		return headlineList;
	}

	public void setHeadlineList(List<Headline> headlineList) {
		this.headlineList = headlineList;
	}

}
